﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="GroupControl.ascx.vb" Inherits="WebForm_ManageGroup_GroupControl" %>
<div style="background-color: #351D26">
 <fieldset id="plGroup" style="border-color: #4E333B" runat="server">
        <legend class="white2">
            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:plGroup.GroupingText%>" />
        </legend>
           <table width="98%" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="Left">
                        <asp:Label ID="lblDivision" runat="server" meta:resourcekey="lblDivision"></asp:Label>
                        <asp:DropDownList ID="ddlDivision" runat="server" AutoPostBack="true">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="rfvDivision" SetFocusOnError="true" runat="server"
                        Display="None" ControlToValidate="ddlDivision" meta:resourcekey="rfvDivision"
                        ValidationGroup="gAdd"></asp:RequiredFieldValidator>
                        <asp:Label ID="lblDimension" runat="server" meta:resourcekey="lblDimension"></asp:Label>
                        <asp:DropDownList ID="ddlDimension" runat="server" AutoPostBack="true">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="rfvDimension" SetFocusOnError="true" runat="server"
                        Display="None" ControlToValidate="ddlDimension" meta:resourcekey="rfvDimension"
                        ValidationGroup="gAdd"></asp:RequiredFieldValidator>
                    </td>
                 </tr>
                 <tr>
                    <td colspan="4" align="right">
                        <asp:Label ID="lblGroupName" runat="server" meta:resourcekey="lblGroupName"></asp:Label>
                        <asp:TextBox ID="txtGroupName" runat="server" Width="70%" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvGroupName" runat="server" Display="None"
                        ControlToValidate="txtGroupName" meta:resourcekey="rfvGroupName" SetFocusOnError="true"
                        ValidationGroup="gAdd"></asp:RequiredFieldValidator>
                           <asp:Button ID="btnAdd" runat="server" meta:resourcekey="btnAdd" ValidationGroup="gAdd" />
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                         ShowSummary="false" ValidationGroup="gAdd" />
                     </td>
                 </tr>
           </table>
 </fieldset>
 <fieldset id="plList" style="border-color: #4E333B" runat="server">
      <legend class="white2">
            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:plList.GroupingText%>" />
        </legend>
        <table width="100%" cellpadding="0" cellspacing="0">
          <tr>
                <td width="95%" align="center">
                         <My:MyGridView ID="gv" runat="server" SkinID="pager" AllowPaging="True" meta:resourcekey="gv" DataKeyNames="GroupID,Dimension,Division">
                            <Columns>
                               <asp:BoundField DataField="Division" meta:resourcekey="gvDivision" ReadOnly="true" />
                               <asp:BoundField DataField="DimensionText" meta:resourcekey="gvDimension" ReadOnly="true"  />
                               <asp:TemplateField meta:resourcekey="gvGroupName">
                                    <edititemtemplate>
                                        <asp:TextBox ID="txtgvGroupName" Text='<%#Eval("GroupName")%>' runat="server" MaxLength="50"></asp:TextBox>
                                    </edititemtemplate>
                                    <itemtemplate>
                                        <asp:Label ID="lblgvGroupName" SkinID="subSection" runat="server" Text='<%# Bind("GroupName") %>'></asp:Label>
                                    </itemtemplate>
                              </asp:TemplateField>
                               <asp:TemplateField meta:resourcekey="gvAttribute">
                                    <itemtemplate>
                                        <asp:LinkButton ID="lknSet" runat="server" SkinID="Infor" meta:resourcekey="lknSet" CommandName="Set"></asp:LinkButton>
                                    </itemtemplate>
                              </asp:TemplateField>
                              <asp:TemplateField>
                                    <itemtemplate>
                                          <asp:LinkButton id="lknEdit" SkinID="Infor" meta:resourcekey="lknEdit" runat="server" CommandName="Edit"></asp:LinkButton> 
                                           &nbsp;
                                          <asp:LinkButton id="lknDelete" SkinID="Infor" meta:resourcekey="lknDelete" runat="server" CommandName="Delete"></asp:LinkButton> 
                                          <ajaxToolkit:ConfirmButtonExtender id="cbDelete" meta:resourcekey="cbDelete" runat="server" TargetControlID="lknDelete">
                                          </ajaxToolkit:ConfirmButtonExtender>                                
                                    </itemtemplate>
                                    <edititemtemplate>
                                         <asp:LinkButton id="lknSave" SkinID="Infor" meta:resourcekey="lknSave" runat="server" CommandName="Update"></asp:LinkButton> 
                                         &nbsp;
                                         <asp:LinkButton id="lknCancel" SkinID="Infor" meta:resourcekey="lknCancel" runat="server" CommandName="Cancel"></asp:LinkButton> 
                                         <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="lknSave"
                                         meta:resourcekey="cbSave">
                                         </ajaxToolkit:ConfirmButtonExtender>
                                   </edititemtemplate>
                              </asp:TemplateField>
                            </Columns>
                         </My:MyGridView>
                </td>
          </tr>
        </table>
   </fieldset>     
</div>